﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SMBL.Interface.Document
{
    /// <summary>
    /// Interface Document Basic Operations
    /// This interface provide the basic operations of a file.
    /// This interface can only be inheirted by IDocProcessor.
    /// @Author: Push
    /// </summary>
    public interface IDocBasic
    {
        /// <summary>
        /// Save the file.
        /// The implenemention of the function should save the opened file.
        /// @Author: Push
        /// </summary>
        void Save();

        /// <summary>
        /// Create a new file.
        /// The implenemention of the function should create a new file.
        /// @Auhtor: Push
        /// </summary>
        /// <param name="CreateNewFileIfNotExist">
        /// If need to create a new file if current path point to a null reference
        /// </param>
        void New();

        /// <summary>
        /// Open the file as an XML Document.
        /// @Author: Push
        /// </summary>
        /// <returns>The Opened XML Document</returns>
        System.Xml.XmlDocument OpenAsXML();
    }
}
